Interface: AudioElement
Hierarchy
HTMLAudioElement
↳
AudioElement
Properties
ATTRIBUTE_NODE
• Readonly
ATTRIBUTE_NODE: 2
Inherited from
HTMLAudioElement.ATTRIBUTE_NODE
CDATA_SECTION_NODE
• Readonly
CDATA_SECTION_NODE: 4
node is a CDATASection node.
Inherited from
HTMLAudioElement.CDATA_SECTION_NODE
COMMENT_NODE
• Readonly
COMMENT_NODE: 8
node is a Comment node.
Inherited from
HTMLAudioElement.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
• Readonly
DOCUMENT_FRAGMENT_NODE: 11
node is a DocumentFragment node.
Inherited from
HTMLAudioElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
• Readonly
DOCUMENT_NODE: 9
node is a document.
Inherited from
HTMLAudioElement.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
• Readonly
DOCUMENT_POSITION_CONTAINED_BY: 16
Set when other is a descendant of node.
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
• Readonly
DOCUMENT_POSITION_CONTAINS: 8
Set when other is an ancestor of node.
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
• Readonly
DOCUMENT_POSITION_DISCONNECTED: 1
Set when node and other are not in the same tree.
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
• Readonly
DOCUMENT_POSITION_FOLLOWING: 4
Set when other is following node.
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
• Readonly
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
• Readonly
DOCUMENT_POSITION_PRECEDING: 2
Set when other is preceding node.
Inherited from
HTMLAudioElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
• Readonly
DOCUMENT_TYPE_NODE: 10
node is a doctype.
Inherited from
HTMLAudioElement.DOCUMENT_TYPE_NODE
ELEMENT_NODE
• Readonly
ELEMENT_NODE: 1
node is an element.
Inherited from
HTMLAudioElement.ELEMENT_NODE
ENTITY_NODE
• Readonly
ENTITY_NODE: 6
Inherited from
HTMLAudioElement.ENTITY_NODE
ENTITY_REFERENCE_NODE
• Readonly
ENTITY_REFERENCE_NODE: 5
Inherited from
HTMLAudioElement.ENTITY_REFERENCE_NODE
HAVE_CURRENT_DATA
• Readonly
HAVE_CURRENT_DATA: 2
Inherited from
HTMLAudioElement.HAVE_CURRENT_DATA
HAVE_ENOUGH_DATA
• Readonly
HAVE_ENOUGH_DATA: 4
Inherited from
HTMLAudioElement.HAVE_ENOUGH_DATA
HAVE_FUTURE_DATA
• Readonly
HAVE_FUTURE_DATA: 3
Inherited from
HTMLAudioElement.HAVE_FUTURE_DATA
HAVE_METADATA
• Readonly
HAVE_METADATA: 1
Inherited from
HTMLAudioElement.HAVE_METADATA
HAVE_NOTHING
• Readonly
HAVE_NOTHING: 0
Inherited from
HTMLAudioElement.HAVE_NOTHING
NETWORK_EMPTY
• Readonly
NETWORK_EMPTY: 0
Inherited from
HTMLAudioElement.NETWORK_EMPTY
NETWORK_IDLE
• Readonly
NETWORK_IDLE: 1
Inherited from
HTMLAudioElement.NETWORK_IDLE
NETWORK_LOADING
• Readonly
NETWORK_LOADING: 2
Inherited from
HTMLAudioElement.NETWORK_LOADING
NETWORK_NO_SOURCE
• Readonly
NETWORK_NO_SOURCE: 3
Inherited from
HTMLAudioElement.NETWORK_NO_SOURCE
NOTATION_NODE
• Readonly
NOTATION_NODE: 12
Inherited from
HTMLAudioElement.NOTATION_NODE
PROCESSING_INSTRUCTION_NODE
• Readonly
PROCESSING_INSTRUCTION_NODE: 7
node is a ProcessingInstruction node.
Inherited from
HTMLAudioElement.PROCESSING_INSTRUCTION_NODE
TEXT_NODE
• Readonly
TEXT_NODE: 3
node is a Text node.
Inherited from
HTMLAudioElement.TEXT_NODE
[InitialValue]
• Optional
[InitialValue]: string
Inherited from
HTMLAudioElement.__@InitialValue@796
[PointerEventsCheck]
• Optional
[PointerEventsCheck]: { 1
: undefined
| object
; 2
: undefined
| object
} & { result
: undefined
| { pointerEvents
: string
; tree
: Element
[] } }
Inherited from
HTMLAudioElement.__@PointerEventsCheck@792
[TrackChanges]
• Optional
[TrackChanges]: Object
Type declaration
Name | Type |
---|---|
nextValue? | string |
previousValue? | string |
tracked? | string [] |
Inherited from
HTMLAudioElement.__@TrackChanges@800
[UISelection]
• Optional
[UISelection]: UISelection
Inherited from
HTMLAudioElement.__@UISelection@798
[UIValue]
• Optional
[UIValue]: string
Inherited from
HTMLAudioElement.__@UIValue@794
accessKey
• accessKey: string
Inherited from
HTMLAudioElement.accessKey
accessKeyLabel
• Readonly
accessKeyLabel: string
Inherited from
HTMLAudioElement.accessKeyLabel
ariaAtomic
• ariaAtomic: null
| string
Inherited from
HTMLAudioElement.ariaAtomic
ariaAutoComplete
• ariaAutoComplete: null
| string
Inherited from
HTMLAudioElement.ariaAutoComplete
ariaBusy
• ariaBusy: null
| string
Inherited from
HTMLAudioElement.ariaBusy
ariaChecked
• ariaChecked: null
| string
Inherited from
HTMLAudioElement.ariaChecked
ariaColCount
• ariaColCount: null
| string
Inherited from
HTMLAudioElement.ariaColCount
ariaColIndex
• ariaColIndex: null
| string
Inherited from
HTMLAudioElement.ariaColIndex
ariaColSpan
• ariaColSpan: null
| string
Inherited from
HTMLAudioElement.ariaColSpan
ariaCurrent
• ariaCurrent: null
| string
Inherited from
HTMLAudioElement.ariaCurrent
ariaDisabled
• ariaDisabled: null
| string
Inherited from
HTMLAudioElement.ariaDisabled
ariaExpanded
• ariaExpanded: null
| string
Inherited from
HTMLAudioElement.ariaExpanded
ariaHasPopup
• ariaHasPopup: null
| string
Inherited from
HTMLAudioElement.ariaHasPopup
ariaHidden
• ariaHidden: null
| string
Inherited from
HTMLAudioElement.ariaHidden
ariaInvalid
• ariaInvalid: null
| string
Inherited from
HTMLAudioElement.ariaInvalid
ariaKeyShortcuts
• ariaKeyShortcuts: null
| string
Inherited from
HTMLAudioElement.ariaKeyShortcuts
ariaLabel
• ariaLabel: null
| string
Inherited from
HTMLAudioElement.ariaLabel
ariaLevel
• ariaLevel: null
| string
Inherited from
HTMLAudioElement.ariaLevel
ariaLive
• ariaLive: null
| string
Inherited from
HTMLAudioElement.ariaLive
ariaModal
• ariaModal: null
| string
Inherited from
HTMLAudioElement.ariaModal
ariaMultiLine
• ariaMultiLine: null
| string
Inherited from
HTMLAudioElement.ariaMultiLine
ariaMultiSelectable
• ariaMultiSelectable: null
| string
Inherited from
HTMLAudioElement.ariaMultiSelectable
ariaOrientation
• ariaOrientation: null
| string
Inherited from
HTMLAudioElement.ariaOrientation
ariaPlaceholder
• ariaPlaceholder: null
| string
Inherited from
HTMLAudioElement.ariaPlaceholder
ariaPosInSet
• ariaPosInSet: null
| string
Inherited from
HTMLAudioElement.ariaPosInSet
ariaPressed
• ariaPressed: null
| string
Inherited from
HTMLAudioElement.ariaPressed
ariaReadOnly
• ariaReadOnly: null
| string
Inherited from
HTMLAudioElement.ariaReadOnly
ariaRequired
• ariaRequired: null
| string
Inherited from
HTMLAudioElement.ariaRequired
ariaRoleDescription
• ariaRoleDescription: null
| string
Inherited from
HTMLAudioElement.ariaRoleDescription
ariaRowCount
• ariaRowCount: null
| string
Inherited from
HTMLAudioElement.ariaRowCount
ariaRowIndex
• ariaRowIndex: null
| string
Inherited from
HTMLAudioElement.ariaRowIndex
ariaRowSpan
• ariaRowSpan: null
| string
Inherited from
HTMLAudioElement.ariaRowSpan
ariaSelected
• ariaSelected: null
| string
Inherited from
HTMLAudioElement.ariaSelected
ariaSetSize
• ariaSetSize: null
| string
Inherited from
HTMLAudioElement.ariaSetSize
ariaSort
• ariaSort: null
| string
Inherited from
HTMLAudioElement.ariaSort
ariaValueMax
• ariaValueMax: null
| string
Inherited from
HTMLAudioElement.ariaValueMax
ariaValueMin
• ariaValueMin: null
| string
Inherited from
HTMLAudioElement.ariaValueMin
ariaValueNow
• ariaValueNow: null
| string
Inherited from
HTMLAudioElement.ariaValueNow
ariaValueText
• ariaValueText: null
| string
Inherited from
HTMLAudioElement.ariaValueText
assignedSlot
• Readonly
assignedSlot: null
| HTMLSlotElement
Inherited from
HTMLAudioElement.assignedSlot
attributes
• Readonly
attributes: NamedNodeMap
Inherited from
HTMLAudioElement.attributes
autocapitalize
• autocapitalize: string
Inherited from
HTMLAudioElement.autocapitalize
autofocus
• autofocus: boolean
Inherited from
HTMLAudioElement.autofocus
autoplay
• autoplay: boolean
Gets or sets a value that indicates whether to start playing the media automatically.
Inherited from
HTMLAudioElement.autoplay
baseURI
• Readonly
baseURI: string
Returns node's node document's document base URL.
Inherited from
HTMLAudioElement.baseURI
buffered
• Readonly
buffered: TimeRanges
Gets a collection of buffered time ranges.
Inherited from
HTMLAudioElement.buffered
childElementCount
• Readonly
childElementCount: number
Inherited from
HTMLAudioElement.childElementCount
childNodes
• Readonly
childNodes: NodeListOf
<ChildNode
>
Returns the children.
Inherited from
HTMLAudioElement.childNodes
children
• Readonly
children: HTMLCollection
Returns the child elements.
Inherited from
HTMLAudioElement.children
classList
• Readonly
classList: DOMTokenList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Inherited from
HTMLAudioElement.classList
className
• className: string
Returns the value of element's class content attribute. Can be set to change it.
Inherited from
HTMLAudioElement.className
clientHeight
• Readonly
clientHeight: number
Inherited from
HTMLAudioElement.clientHeight
clientLeft
• Readonly
clientLeft: number
Inherited from
HTMLAudioElement.clientLeft
clientTop
• Readonly
clientTop: number
Inherited from
HTMLAudioElement.clientTop
clientWidth
• Readonly
clientWidth: number
Inherited from
HTMLAudioElement.clientWidth
contentEditable
• contentEditable: string
Inherited from
HTMLAudioElement.contentEditable
controls
• controls: boolean
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
Inherited from
HTMLAudioElement.controls
crossOrigin
• crossOrigin: null
| string
Inherited from
HTMLAudioElement.crossOrigin
currentSrc
• Readonly
currentSrc: string
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
Inherited from
HTMLAudioElement.currentSrc
currentTime
• currentTime: number
Gets or sets the current playback position, in seconds.
Inherited from
HTMLAudioElement.currentTime
dataset
• Readonly
dataset: DOMStringMap
Inherited from
HTMLAudioElement.dataset
defaultMuted
• defaultMuted: boolean
Inherited from
HTMLAudioElement.defaultMuted
defaultPlaybackRate
• defaultPlaybackRate: number
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
Inherited from
HTMLAudioElement.defaultPlaybackRate
dir
• dir: string
Inherited from
HTMLAudioElement.dir
disableRemotePlayback
• disableRemotePlayback: boolean
Inherited from
HTMLAudioElement.disableRemotePlayback
draggable
• draggable: boolean
Inherited from
HTMLAudioElement.draggable
duration
• Readonly
duration: number
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
Inherited from
HTMLAudioElement.duration
ended
• Readonly
ended: boolean
Gets information about whether the playback has ended or not.
Inherited from
HTMLAudioElement.ended
enterKeyHint
• enterKeyHint: string
Inherited from
HTMLAudioElement.enterKeyHint
error
• Readonly
error: null
| MediaError
Returns an object representing the current error state of the audio or video element.
Inherited from
HTMLAudioElement.error
firstChild
• Readonly
firstChild: null
| ChildNode
Returns the first child.
Inherited from
HTMLAudioElement.firstChild
firstElementChild
• Readonly
firstElementChild: null
| Element
Returns the first child that is an element, and null otherwise.
Inherited from
HTMLAudioElement.firstElementChild
hidden
• hidden: boolean
Inherited from
HTMLAudioElement.hidden
id
• id: string
Returns the value of element's id content attribute. Can be set to change it.
Inherited from
HTMLAudioElement.id
inert
• inert: boolean
Inherited from
HTMLAudioElement.inert
innerHTML
• innerHTML: string
Inherited from
HTMLAudioElement.innerHTML
innerText
• innerText: string
Inherited from
HTMLAudioElement.innerText
inputMode
• inputMode: string
Inherited from
HTMLAudioElement.inputMode
isConnected
• Readonly
isConnected: boolean
Returns true if node is connected and false otherwise.
Inherited from
HTMLAudioElement.isConnected
isContentEditable
• Readonly
isContentEditable: boolean
Inherited from
HTMLAudioElement.isContentEditable
lang
• lang: string
Inherited from
HTMLAudioElement.lang
lastChild
• Readonly
lastChild: null
| ChildNode
Returns the last child.
Inherited from
HTMLAudioElement.lastChild
lastElementChild
• Readonly
lastElementChild: null
| Element
Returns the last child that is an element, and null otherwise.
Inherited from
HTMLAudioElement.lastElementChild
localName
• Readonly
localName: string
Returns the local name.
Inherited from
HTMLAudioElement.localName
loop
• loop: boolean
Gets or sets a flag to specify whether playback should restart after it completes.
Inherited from
HTMLAudioElement.loop
mediaKeys
• Readonly
mediaKeys: null
| MediaKeys
Available only in secure contexts.
Inherited from
HTMLAudioElement.mediaKeys
muted
• muted: boolean
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
Inherited from
HTMLAudioElement.muted
namespaceURI
• Readonly
namespaceURI: null
| string
Returns the namespace.
Inherited from
HTMLAudioElement.namespaceURI
networkState
• Readonly
networkState: number
Gets the current network activity for the element.
Inherited from
HTMLAudioElement.networkState
nextElementSibling
• Readonly
nextElementSibling: null
| Element
Returns the first following sibling that is an element, and null otherwise.
Inherited from
HTMLAudioElement.nextElementSibling
nextSibling
• Readonly
nextSibling: null
| ChildNode
Returns the next sibling.
Inherited from
HTMLAudioElement.nextSibling
nodeName
• Readonly
nodeName: string
Returns a string appropriate for the type of node.
Inherited from
HTMLAudioElement.nodeName
nodeType
• Readonly
nodeType: number
Returns the type of node.
Inherited from
HTMLAudioElement.nodeType
nodeValue
• nodeValue: null
| string
Inherited from
HTMLAudioElement.nodeValue
nonce
• Optional
nonce: string
Inherited from
HTMLAudioElement.nonce
offsetHeight
• Readonly
offsetHeight: number
Inherited from
HTMLAudioElement.offsetHeight
offsetLeft
• Readonly
offsetLeft: number
Inherited from
HTMLAudioElement.offsetLeft
offsetParent
• Readonly
offsetParent: null
| Element
Inherited from
HTMLAudioElement.offsetParent
offsetTop
• Readonly
offsetTop: number
Inherited from
HTMLAudioElement.offsetTop
offsetWidth
• Readonly
offsetWidth: number
Inherited from
HTMLAudioElement.offsetWidth
onabort
• onabort: null
| (this
: GlobalEventHandlers
, ev
: UIEvent
) => any
Fires when the user aborts the download.
Param
The event.
Inherited from
HTMLAudioElement.onabort
onanimationcancel
• onanimationcancel: null
| (this
: GlobalEventHandlers
, ev
: AnimationEvent
) => any
Inherited from
HTMLAudioElement.onanimationcancel
onanimationend
• onanimationend: null
| (this
: GlobalEventHandlers
, ev
: AnimationEvent
) => any
Inherited from
HTMLAudioElement.onanimationend
onanimationiteration
• onanimationiteration: null
| (this
: GlobalEventHandlers
, ev
: AnimationEvent
) => any
Inherited from
HTMLAudioElement.onanimationiteration
onanimationstart
• onanimationstart: null
| (this
: GlobalEventHandlers
, ev
: AnimationEvent
) => any
Inherited from
HTMLAudioElement.onanimationstart
onauxclick
• onauxclick: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Inherited from
HTMLAudioElement.onauxclick
onbeforeinput
• onbeforeinput: null
| (this
: GlobalEventHandlers
, ev
: InputEvent
) => any
Inherited from
HTMLAudioElement.onbeforeinput
onblur
• onblur: null
| (this
: GlobalEventHandlers
, ev
: FocusEvent
) => any
Fires when the object loses the input focus.
Param
The focus event.
Inherited from
HTMLAudioElement.onblur
oncancel
• oncancel: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.oncancel
oncanplay
• oncanplay: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when playback is possible, but would require further buffering.
Param
The event.
Inherited from
HTMLAudioElement.oncanplay
oncanplaythrough
• oncanplaythrough: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.oncanplaythrough
onchange
• onchange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Fires when the contents of the object or selection have changed.
Param
The event.
Inherited from
HTMLAudioElement.onchange
onclick
• onclick: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user clicks the left mouse button on the object
Param
The mouse event.
Inherited from
HTMLAudioElement.onclick
onclose
• onclose: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onclose
oncontextmenu
• oncontextmenu: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Param
The mouse event.
Inherited from
HTMLAudioElement.oncontextmenu
oncopy
• oncopy: null
| (this
: GlobalEventHandlers
, ev
: ClipboardEvent
) => any
Inherited from
HTMLAudioElement.oncopy
oncuechange
• oncuechange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.oncuechange
oncut
• oncut: null
| (this
: GlobalEventHandlers
, ev
: ClipboardEvent
) => any
Inherited from
HTMLAudioElement.oncut
ondblclick
• ondblclick: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user double-clicks the object.
Param
The mouse event.
Inherited from
HTMLAudioElement.ondblclick
ondrag
• ondrag: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the source object continuously during a drag operation.
Param
The event.
Inherited from
HTMLAudioElement.ondrag
ondragend
• ondragend: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the source object when the user releases the mouse at the close of a drag operation.
Param
The event.
Inherited from
HTMLAudioElement.ondragend
ondragenter
• ondragenter: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the target element when the user drags the object to a valid drop target.
Param
The drag event.
Inherited from
HTMLAudioElement.ondragenter
ondragleave
• ondragleave: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Param
The drag event.
Inherited from
HTMLAudioElement.ondragleave
ondragover
• ondragover: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the target element continuously while the user drags the object over a valid drop target.
Param
The event.
Inherited from
HTMLAudioElement.ondragover
ondragstart
• ondragstart: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Fires on the source object when the user starts to drag a text selection or selected object.
Param
The event.
Inherited from
HTMLAudioElement.ondragstart
ondrop
• ondrop: null
| (this
: GlobalEventHandlers
, ev
: DragEvent
) => any
Inherited from
HTMLAudioElement.ondrop
ondurationchange
• ondurationchange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the duration attribute is updated.
Param
The event.
Inherited from
HTMLAudioElement.ondurationchange
onemptied
• onemptied: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the media element is reset to its initial state.
Param
The event.
Inherited from
HTMLAudioElement.onemptied
onencrypted
• onencrypted: null
| (this
: HTMLMediaElement
, ev
: MediaEncryptedEvent
) => any
Inherited from
HTMLAudioElement.onencrypted
onended
• onended: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the end of playback is reached.
Param
The event
Inherited from
HTMLAudioElement.onended
onerror
• onerror: OnErrorEventHandler
Fires when an error occurs during object loading.
Param
The event.
Inherited from
HTMLAudioElement.onerror
onfocus
• onfocus: null
| (this
: GlobalEventHandlers
, ev
: FocusEvent
) => any
Fires when the object receives focus.
Param
The event.
Inherited from
HTMLAudioElement.onfocus
onformdata
• onformdata: null
| (this
: GlobalEventHandlers
, ev
: FormDataEvent
) => any
Inherited from
HTMLAudioElement.onformdata
onfullscreenchange
• onfullscreenchange: null
| (this
: Element
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onfullscreenchange
onfullscreenerror
• onfullscreenerror: null
| (this
: Element
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onfullscreenerror
ongotpointercapture
• ongotpointercapture: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.ongotpointercapture
oninput
• oninput: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.oninput
oninvalid
• oninvalid: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.oninvalid
onkeydown
• onkeydown: null
| (this
: GlobalEventHandlers
, ev
: KeyboardEvent
) => any
Fires when the user presses a key.
Param
The keyboard event
Inherited from
HTMLAudioElement.onkeydown
onkeypress
• onkeypress: null
| (this
: GlobalEventHandlers
, ev
: KeyboardEvent
) => any
Fires when the user presses an alphanumeric key.
Param
The event.
Deprecated
Inherited from
HTMLAudioElement.onkeypress
onkeyup
• onkeyup: null
| (this
: GlobalEventHandlers
, ev
: KeyboardEvent
) => any
Fires when the user releases a key.
Param
The keyboard event
Inherited from
HTMLAudioElement.onkeyup
onload
• onload: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Fires immediately after the browser loads the object.
Param
The event.
Inherited from
HTMLAudioElement.onload
onloadeddata
• onloadeddata: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when media data is loaded at the current playback position.
Param
The event.
Inherited from
HTMLAudioElement.onloadeddata
onloadedmetadata
• onloadedmetadata: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the duration and dimensions of the media have been determined.
Param
The event.
Inherited from
HTMLAudioElement.onloadedmetadata
onloadstart
• onloadstart: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when Internet Explorer begins looking for media data.
Param
The event.
Inherited from
HTMLAudioElement.onloadstart
onlostpointercapture
• onlostpointercapture: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onlostpointercapture
onmousedown
• onmousedown: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user clicks the object with either mouse button.
Param
The mouse event.
Inherited from
HTMLAudioElement.onmousedown
onmouseenter
• onmouseenter: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Inherited from
HTMLAudioElement.onmouseenter
onmouseleave
• onmouseleave: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Inherited from
HTMLAudioElement.onmouseleave
onmousemove
• onmousemove: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user moves the mouse over the object.
Param
The mouse event.
Inherited from
HTMLAudioElement.onmousemove
onmouseout
• onmouseout: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user moves the mouse pointer outside the boundaries of the object.
Param
The mouse event.
Inherited from
HTMLAudioElement.onmouseout
onmouseover
• onmouseover: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user moves the mouse pointer into the object.
Param
The mouse event.
Inherited from
HTMLAudioElement.onmouseover
onmouseup
• onmouseup: null
| (this
: GlobalEventHandlers
, ev
: MouseEvent
) => any
Fires when the user releases a mouse button while the mouse is over the object.
Param
The mouse event.
Inherited from
HTMLAudioElement.onmouseup
onpaste
• onpaste: null
| (this
: GlobalEventHandlers
, ev
: ClipboardEvent
) => any
Inherited from
HTMLAudioElement.onpaste
onpause
• onpause: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when playback is paused.
Param
The event.
Inherited from
HTMLAudioElement.onpause
onplay
• onplay: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the play method is requested.
Param
The event.
Inherited from
HTMLAudioElement.onplay
onplaying
• onplaying: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the audio or video has started playing.
Param
The event.
Inherited from
HTMLAudioElement.onplaying
onpointercancel
• onpointercancel: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointercancel
onpointerdown
• onpointerdown: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerdown
onpointerenter
• onpointerenter: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerenter
onpointerleave
• onpointerleave: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerleave
onpointermove
• onpointermove: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointermove
onpointerout
• onpointerout: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerout
onpointerover
• onpointerover: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerover
onpointerup
• onpointerup: null
| (this
: GlobalEventHandlers
, ev
: PointerEvent
) => any
Inherited from
HTMLAudioElement.onpointerup
onprogress
• onprogress: null
| (this
: GlobalEventHandlers
, ev
: ProgressEvent
<EventTarget
>) => any
Occurs to indicate progress while downloading media data.
Param
The event.
Inherited from
HTMLAudioElement.onprogress
onratechange
• onratechange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the playback rate is increased or decreased.
Param
The event.
Inherited from
HTMLAudioElement.onratechange
onreset
• onreset: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Fires when the user resets a form.
Param
The event.
Inherited from
HTMLAudioElement.onreset
onresize
• onresize: null
| (this
: GlobalEventHandlers
, ev
: UIEvent
) => any
Inherited from
HTMLAudioElement.onresize
onscroll
• onscroll: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Fires when the user repositions the scroll box in the scroll bar on the object.
Param
The event.
Inherited from
HTMLAudioElement.onscroll
onsecuritypolicyviolation
• onsecuritypolicyviolation: null
| (this
: GlobalEventHandlers
, ev
: SecurityPolicyViolationEvent
) => any
Inherited from
HTMLAudioElement.onsecuritypolicyviolation
onseeked
• onseeked: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the seek operation ends.
Param
The event.
Inherited from
HTMLAudioElement.onseeked
onseeking
• onseeking: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the current playback position is moved.
Param
The event.
Inherited from
HTMLAudioElement.onseeking
onselect
• onselect: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Fires when the current selection changes.
Param
The event.
Inherited from
HTMLAudioElement.onselect
onselectionchange
• onselectionchange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onselectionchange
onselectstart
• onselectstart: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onselectstart
onslotchange
• onslotchange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onslotchange
onstalled
• onstalled: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the download has stopped.
Param
The event.
Inherited from
HTMLAudioElement.onstalled
onsubmit
• onsubmit: null
| (this
: GlobalEventHandlers
, ev
: SubmitEvent
) => any
Inherited from
HTMLAudioElement.onsubmit
onsuspend
• onsuspend: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs if the load operation has been intentionally halted.
Param
The event.
Inherited from
HTMLAudioElement.onsuspend
ontimeupdate
• ontimeupdate: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs to indicate the current playback position.
Param
The event.
Inherited from
HTMLAudioElement.ontimeupdate
ontoggle
• ontoggle: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Inherited from
HTMLAudioElement.ontoggle
ontouchcancel
• Optional
ontouchcancel: null
| (this
: GlobalEventHandlers
, ev
: TouchEvent
) => any
Inherited from
HTMLAudioElement.ontouchcancel
ontouchend
• Optional
ontouchend: null
| (this
: GlobalEventHandlers
, ev
: TouchEvent
) => any
Inherited from
HTMLAudioElement.ontouchend
ontouchmove
• Optional
ontouchmove: null
| (this
: GlobalEventHandlers
, ev
: TouchEvent
) => any
Inherited from
HTMLAudioElement.ontouchmove
ontouchstart
• Optional
ontouchstart: null
| (this
: GlobalEventHandlers
, ev
: TouchEvent
) => any
Inherited from
HTMLAudioElement.ontouchstart
ontransitioncancel
• ontransitioncancel: null
| (this
: GlobalEventHandlers
, ev
: TransitionEvent
) => any
Inherited from
HTMLAudioElement.ontransitioncancel
ontransitionend
• ontransitionend: null
| (this
: GlobalEventHandlers
, ev
: TransitionEvent
) => any
Inherited from
HTMLAudioElement.ontransitionend
ontransitionrun
• ontransitionrun: null
| (this
: GlobalEventHandlers
, ev
: TransitionEvent
) => any
Inherited from
HTMLAudioElement.ontransitionrun
ontransitionstart
• ontransitionstart: null
| (this
: GlobalEventHandlers
, ev
: TransitionEvent
) => any
Inherited from
HTMLAudioElement.ontransitionstart
onvolumechange
• onvolumechange: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when the volume is changed, or playback is muted or unmuted.
Param
The event.
Inherited from
HTMLAudioElement.onvolumechange
onwaiting
• onwaiting: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Occurs when playback stops because the next frame of a video resource is not available.
Param
The event.
Inherited from
HTMLAudioElement.onwaiting
onwaitingforkey
• onwaitingforkey: null
| (this
: HTMLMediaElement
, ev
: Event
) => any
Inherited from
HTMLAudioElement.onwaitingforkey
onwebkitanimationend
• onwebkitanimationend: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Deprecated
This is a legacy alias of onanimationend
.
Inherited from
HTMLAudioElement.onwebkitanimationend
onwebkitanimationiteration
• onwebkitanimationiteration: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Deprecated
This is a legacy alias of onanimationiteration
.
Inherited from
HTMLAudioElement.onwebkitanimationiteration
onwebkitanimationstart
• onwebkitanimationstart: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Deprecated
This is a legacy alias of onanimationstart
.
Inherited from
HTMLAudioElement.onwebkitanimationstart
onwebkittransitionend
• onwebkittransitionend: null
| (this
: GlobalEventHandlers
, ev
: Event
) => any
Deprecated
This is a legacy alias of ontransitionend
.
Inherited from
HTMLAudioElement.onwebkittransitionend
onwheel
• onwheel: null
| (this
: GlobalEventHandlers
, ev
: WheelEvent
) => any
Inherited from
HTMLAudioElement.onwheel
outerHTML
• outerHTML: string
Inherited from
HTMLAudioElement.outerHTML
outerText
• outerText: string
Inherited from
HTMLAudioElement.outerText
ownerDocument
• Readonly
ownerDocument: Document
Inherited from
HTMLAudioElement.ownerDocument
parentElement
• Readonly
parentElement: null
| HTMLElement
Returns the parent element.
Inherited from
HTMLAudioElement.parentElement
parentNode
• Readonly
parentNode: null
| ParentNode
Returns the parent.
Inherited from
HTMLAudioElement.parentNode
part
• Readonly
part: DOMTokenList
Inherited from
HTMLAudioElement.part
paused
• Readonly
paused: boolean
Gets a flag that specifies whether playback is paused.
Inherited from
HTMLAudioElement.paused
playbackRate
• playbackRate: number
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
Inherited from
HTMLAudioElement.playbackRate
played
• Readonly
played: TimeRanges
Gets TimeRanges for the current media resource that has been played.
Inherited from
HTMLAudioElement.played
prefix
• Readonly
prefix: null
| string
Returns the namespace prefix.
Inherited from
HTMLAudioElement.prefix
preload
• preload: ""
| "none"
| "auto"
| "metadata"
Gets or sets a value indicating what data should be preloaded, if any.
Inherited from
HTMLAudioElement.preload
preservesPitch
• preservesPitch: boolean
Inherited from
HTMLAudioElement.preservesPitch
previousElementSibling
• Readonly
previousElementSibling: null
| Element
Returns the first preceding sibling that is an element, and null otherwise.
Inherited from
HTMLAudioElement.previousElementSibling
previousSibling
• Readonly
previousSibling: null
| ChildNode
Returns the previous sibling.
Inherited from
HTMLAudioElement.previousSibling
readyState
• Readonly
readyState: number
Inherited from
HTMLAudioElement.readyState
remote
• Readonly
remote: RemotePlayback
Inherited from
HTMLAudioElement.remote
role
• role: null
| string
Inherited from
HTMLAudioElement.role
scrollHeight
• Readonly
scrollHeight: number
Inherited from
HTMLAudioElement.scrollHeight
scrollLeft
• scrollLeft: number
Inherited from
HTMLAudioElement.scrollLeft
scrollTop
• scrollTop: number
Inherited from
HTMLAudioElement.scrollTop
scrollWidth
• Readonly
scrollWidth: number
Inherited from
HTMLAudioElement.scrollWidth
seekable
• Readonly
seekable: TimeRanges
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
Inherited from
HTMLAudioElement.seekable
seeking
• Readonly
seeking: boolean
Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
Inherited from
HTMLAudioElement.seeking
setSinkId
• setSinkId: (sinkId
: string
) => void
Type declaration
▸ (sinkId
): void
Parameters
Name | Type |
---|---|
sinkId | string |
Returns
void
shadowRoot
• Readonly
shadowRoot: null
| ShadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Inherited from
HTMLAudioElement.shadowRoot
slot
• slot: string
Returns the value of element's slot content attribute. Can be set to change it.
Inherited from
HTMLAudioElement.slot
spellcheck
• spellcheck: boolean
Inherited from
HTMLAudioElement.spellcheck
src
• src: string
The address or URL of the a media resource that is to be considered.
Inherited from
HTMLAudioElement.src
srcObject
• srcObject: null
| MediaProvider
Inherited from
HTMLAudioElement.srcObject
style
• Readonly
style: CSSStyleDeclaration
Inherited from
HTMLAudioElement.style
tabIndex
• tabIndex: number
Inherited from
HTMLAudioElement.tabIndex
tagName
• Readonly
tagName: string
Returns the HTML-uppercased qualified name.
Inherited from
HTMLAudioElement.tagName
textContent
• textContent: null
| string
Inherited from
HTMLAudioElement.textContent
textTracks
• Readonly
textTracks: TextTrackList
Inherited from
HTMLAudioElement.textTracks
title
• title: string
Inherited from
HTMLAudioElement.title
translate
• translate: boolean
Inherited from
HTMLAudioElement.translate
volume
• volume: number
Gets or sets the volume level for audio portions of the media element.
Inherited from
HTMLAudioElement.volume
Methods
addEventListener
▸ addEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLMediaElementEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (this : HTMLAudioElement , ev : HTMLMediaElementEventMap [K ]) => any |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
HTMLAudioElement.addEventListener
▸ addEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
HTMLAudioElement.addEventListener
addTextTrack
▸ addTextTrack(kind
, label?
, language?
): TextTrack
Parameters
Name | Type |
---|---|
kind | TextTrackKind |
label? | string |
language? | string |
Returns
TextTrack
Inherited from
HTMLAudioElement.addTextTrack
after
▸ after(...nodes
): void
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.after
animate
▸ animate(keyframes
, options?
): Animation
Parameters
Name | Type |
---|---|
keyframes | null | Keyframe [] | PropertyIndexedKeyframes |
options? | number | KeyframeAnimationOptions |
Returns
Animation
Inherited from
HTMLAudioElement.animate
append
▸ append(...nodes
): void
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.append
appendChild
▸ appendChild<T
>(node
): T
Type parameters
Name | Type |
---|---|
T | extends Node <T > |
Parameters
Name | Type |
---|---|
node | T |
Returns
T
Inherited from
HTMLAudioElement.appendChild
attachInternals
▸ attachInternals(): ElementInternals
Returns
ElementInternals
Inherited from
HTMLAudioElement.attachInternals
attachShadow
▸ attachShadow(init
): ShadowRoot
Creates a shadow root for element and returns it.
Parameters
Name | Type |
---|---|
init | ShadowRootInit |
Returns
ShadowRoot
Inherited from
HTMLAudioElement.attachShadow
before
▸ before(...nodes
): void
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.before
blur
▸ blur(): void
Returns
void
Inherited from
HTMLAudioElement.blur
canPlayType
▸ canPlayType(type
): CanPlayTypeResult
Returns a string that specifies whether the client can play a given media resource type.
Parameters
Name | Type |
---|---|
type | string |
Returns
CanPlayTypeResult
Inherited from
HTMLAudioElement.canPlayType
checkVisibility
▸ checkVisibility(options?
): boolean
Parameters
Name | Type |
---|---|
options? | CheckVisibilityOptions |
Returns
boolean
Inherited from
HTMLAudioElement.checkVisibility
click
▸ click(): void
Returns
void
Inherited from
HTMLAudioElement.click
cloneNode
▸ cloneNode(deep?
): Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters
Name | Type |
---|---|
deep? | boolean |
Returns
Node
Inherited from
HTMLAudioElement.cloneNode
closest
▸ closest<K
>(selector
): null
| HTMLElementTagNameMap
[K
]
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selector | K |
Returns
null
| HTMLElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.closest
▸ closest<K
>(selector
): null
| SVGElementTagNameMap
[K
]
Type parameters
Name | Type |
---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
Name | Type |
---|---|
selector | K |
Returns
null
| SVGElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.closest
▸ closest<K
>(selector
): null
| MathMLElementTagNameMap
[K
]
Type parameters
Name | Type |
---|---|
K | extends keyof MathMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selector | K |
Returns
null
| MathMLElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.closest
▸ closest<E
>(selectors
): null
| E
Type parameters
Name | Type |
---|---|
E | extends Element <E > = Element |
Parameters
Name | Type |
---|---|
selectors | string |
Returns
null
| E
Inherited from
HTMLAudioElement.closest
compareDocumentPosition
▸ compareDocumentPosition(other
): number
Returns a bitmask indicating the position of other relative to node.
Parameters
Name | Type |
---|---|
other | Node |
Returns
number
Inherited from
HTMLAudioElement.compareDocumentPosition
contains
▸ contains(other
): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
Name | Type |
---|---|
other | null | Node |
Returns
boolean
Inherited from
HTMLAudioElement.contains
dispatchEvent
▸ dispatchEvent(event
): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Name | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
HTMLAudioElement.dispatchEvent
fastSeek
▸ fastSeek(time
): void
Parameters
Name | Type |
---|---|
time | number |
Returns
void
Inherited from
HTMLAudioElement.fastSeek
focus
▸ focus(options?
): void
Parameters
Name | Type |
---|---|
options? | FocusOptions |
Returns
void
Inherited from
HTMLAudioElement.focus
getAnimations
▸ getAnimations(options?
): Animation
[]
Parameters
Name | Type |
---|---|
options? | GetAnimationsOptions |
Returns
Animation
[]
Inherited from
HTMLAudioElement.getAnimations
getAttribute
▸ getAttribute(qualifiedName
): null
| string
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
Name | Type |
---|---|
qualifiedName | string |
Returns
null
| string
Inherited from
HTMLAudioElement.getAttribute
getAttributeNS
▸ getAttributeNS(namespace
, localName
): null
| string
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
Name | Type |
---|---|
namespace | null | string |
localName | string |
Returns
null
| string
Inherited from
HTMLAudioElement.getAttributeNS
getAttributeNames
▸ getAttributeNames(): string
[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns
string
[]
Inherited from
HTMLAudioElement.getAttributeNames
getAttributeNode
▸ getAttributeNode(qualifiedName
): null
| Attr
Parameters
Name | Type |
---|---|
qualifiedName | string |
Returns
null
| Attr
Inherited from
HTMLAudioElement.getAttributeNode
getAttributeNodeNS
▸ getAttributeNodeNS(namespace
, localName
): null
| Attr
Parameters
Name | Type |
---|---|
namespace | null | string |
localName | string |
Returns
null
| Attr
Inherited from
HTMLAudioElement.getAttributeNodeNS
getBoundingClientRect
▸ getBoundingClientRect(): DOMRect
Returns
DOMRect
Inherited from
HTMLAudioElement.getBoundingClientRect
getClientRects
▸ getClientRects(): DOMRectList
Returns
DOMRectList
Inherited from
HTMLAudioElement.getClientRects
getElementsByClassName
▸ getElementsByClassName(classNames
): HTMLCollectionOf
<Element
>
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Parameters
Name | Type |
---|---|
classNames | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLAudioElement.getElementsByClassName
getElementsByTagName
▸ getElementsByTagName<K
>(qualifiedName
): HTMLCollectionOf
<HTMLElementTagNameMap
[K
]>
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
Name | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<HTMLElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.getElementsByTagName
▸ getElementsByTagName<K
>(qualifiedName
): HTMLCollectionOf
<SVGElementTagNameMap
[K
]>
Type parameters
Name | Type |
---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
Name | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<SVGElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.getElementsByTagName
▸ getElementsByTagName<K
>(qualifiedName
): HTMLCollectionOf
<MathMLElementTagNameMap
[K
]>
Type parameters
Name | Type |
---|---|
K | extends keyof MathMLElementTagNameMap |
Parameters
Name | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<MathMLElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.getElementsByTagName
▸ getElementsByTagName<K
>(qualifiedName
): HTMLCollectionOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Deprecated
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Name | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Inherited from
HTMLAudioElement.getElementsByTagName
▸ getElementsByTagName(qualifiedName
): HTMLCollectionOf
<Element
>
Parameters
Name | Type |
---|---|
qualifiedName | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLAudioElement.getElementsByTagName
getElementsByTagNameNS
▸ getElementsByTagNameNS(namespaceURI
, localName
): HTMLCollectionOf
<HTMLElement
>
Parameters
Name | Type |
---|---|
namespaceURI | "http://www.w3.org/1999/xhtml" |
localName | string |
Returns
HTMLCollectionOf
<HTMLElement
>
Inherited from
HTMLAudioElement.getElementsByTagNameNS
▸ getElementsByTagNameNS(namespaceURI
, localName
): HTMLCollectionOf
<SVGElement
>
Parameters
Name | Type |
---|---|
namespaceURI | "http://www.w3.org/2000/svg" |
localName | string |
Returns
HTMLCollectionOf
<SVGElement
>
Inherited from
HTMLAudioElement.getElementsByTagNameNS
▸ getElementsByTagNameNS(namespaceURI
, localName
): HTMLCollectionOf
<MathMLElement
>
Parameters
Name | Type |
---|---|
namespaceURI | "http://www.w3.org/1998/Math/MathML" |
localName | string |
Returns
HTMLCollectionOf
<MathMLElement
>
Inherited from
HTMLAudioElement.getElementsByTagNameNS
▸ getElementsByTagNameNS(namespace
, localName
): HTMLCollectionOf
<Element
>
Parameters
Name | Type |
---|---|
namespace | null | string |
localName | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLAudioElement.getElementsByTagNameNS
getRootNode
▸ getRootNode(options?
): Node
Returns node's root.
Parameters
Name | Type |
---|---|
options? | GetRootNodeOptions |
Returns
Node
Inherited from
HTMLAudioElement.getRootNode
hasAttribute
▸ hasAttribute(qualifiedName
): boolean
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters
Name | Type |
---|---|
qualifiedName | string |
Returns
boolean
Inherited from
HTMLAudioElement.hasAttribute
hasAttributeNS
▸ hasAttributeNS(namespace
, localName
): boolean
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters
Name | Type |
---|---|
namespace | null | string |
localName | string |
Returns
boolean
Inherited from
HTMLAudioElement.hasAttributeNS
hasAttributes
▸ hasAttributes(): boolean
Returns true if element has attributes, and false otherwise.
Returns
boolean
Inherited from
HTMLAudioElement.hasAttributes
hasChildNodes
▸ hasChildNodes(): boolean
Returns whether node has children.
Returns
boolean
Inherited from
HTMLAudioElement.hasChildNodes
hasPointerCapture
▸ hasPointerCapture(pointerId
): boolean
Parameters
Name | Type |
---|---|
pointerId | number |
Returns
boolean
Inherited from
HTMLAudioElement.hasPointerCapture
insertAdjacentElement
▸ insertAdjacentElement(where
, element
): null
| Element
Parameters
Name | Type |
---|---|
where | InsertPosition |
element | Element |
Returns
null
| Element
Inherited from
HTMLAudioElement.insertAdjacentElement
insertAdjacentHTML
▸ insertAdjacentHTML(position
, text
): void
Parameters
Name | Type |
---|---|
position | InsertPosition |
text | string |
Returns
void
Inherited from
HTMLAudioElement.insertAdjacentHTML
insertAdjacentText
▸ insertAdjacentText(where
, data
): void
Parameters
Name | Type |
---|---|
where | InsertPosition |
data | string |
Returns
void
Inherited from
HTMLAudioElement.insertAdjacentText
insertBefore
▸ insertBefore<T
>(node
, child
): T
Type parameters
Name | Type |
---|---|
T | extends Node <T > |
Parameters
Name | Type |
---|---|
node | T |
child | null | Node |
Returns
T
Inherited from
HTMLAudioElement.insertBefore
isDefaultNamespace
▸ isDefaultNamespace(namespace
): boolean
Parameters
Name | Type |
---|---|
namespace | null | string |
Returns
boolean
Inherited from
HTMLAudioElement.isDefaultNamespace
isEqualNode
▸ isEqualNode(otherNode
): boolean
Returns whether node and otherNode have the same properties.
Parameters
Name | Type |
---|---|
otherNode | null | Node |
Returns
boolean
Inherited from
HTMLAudioElement.isEqualNode
isSameNode
▸ isSameNode(otherNode
): boolean
Parameters
Name | Type |
---|---|
otherNode | null | Node |
Returns
boolean
Inherited from
HTMLAudioElement.isSameNode
load
▸ load(): void
Resets the audio or video object and loads a new media resource.
Returns
void
Inherited from
HTMLAudioElement.load
lookupNamespaceURI
▸ lookupNamespaceURI(prefix
): null
| string
Parameters
Name | Type |
---|---|
prefix | null | string |
Returns
null
| string
Inherited from
HTMLAudioElement.lookupNamespaceURI
lookupPrefix
▸ lookupPrefix(namespace
): null
| string
Parameters
Name | Type |
---|---|
namespace | null | string |
Returns
null
| string
Inherited from
HTMLAudioElement.lookupPrefix
matches
▸ matches(selectors
): boolean
Returns true if matching selectors against element's root yields element, and false otherwise.
Parameters
Name | Type |
---|---|
selectors | string |
Returns
boolean
Inherited from
HTMLAudioElement.matches
normalize
▸ normalize(): void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns
void
Inherited from
HTMLAudioElement.normalize
pause
▸ pause(): void
Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
Returns
void
Inherited from
HTMLAudioElement.pause
play
▸ play(): Promise
<void
>
Loads and starts playback of a media resource.
Returns
Promise
<void
>
Inherited from
HTMLAudioElement.play
prepend
▸ prepend(...nodes
): void
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.prepend
querySelector
▸ querySelector<K
>(selectors
): null
| HTMLElementTagNameMap
[K
]
Returns the first element that is a descendant of node that matches selectors.
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
null
| HTMLElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.querySelector
▸ querySelector<K
>(selectors
): null
| SVGElementTagNameMap
[K
]
Type parameters
Name | Type |
---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
null
| SVGElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.querySelector
▸ querySelector<K
>(selectors
): null
| MathMLElementTagNameMap
[K
]
Type parameters
Name | Type |
---|---|
K | extends keyof MathMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
null
| MathMLElementTagNameMap
[K
]
Inherited from
HTMLAudioElement.querySelector
▸ querySelector<K
>(selectors
): null
| HTMLElementDeprecatedTagNameMap
[K
]
Deprecated
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
null
| HTMLElementDeprecatedTagNameMap
[K
]
Inherited from
HTMLAudioElement.querySelector
▸ querySelector<E
>(selectors
): null
| E
Type parameters
Name | Type |
---|---|
E | extends Element <E > = Element |
Parameters
Name | Type |
---|---|
selectors | string |
Returns
null
| E
Inherited from
HTMLAudioElement.querySelector
querySelectorAll
▸ querySelectorAll<K
>(selectors
): NodeListOf
<HTMLElementTagNameMap
[K
]>
Returns all element descendants of node that match selectors.
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
NodeListOf
<HTMLElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.querySelectorAll
▸ querySelectorAll<K
>(selectors
): NodeListOf
<SVGElementTagNameMap
[K
]>
Type parameters
Name | Type |
---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
NodeListOf
<SVGElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.querySelectorAll
▸ querySelectorAll<K
>(selectors
): NodeListOf
<MathMLElementTagNameMap
[K
]>
Type parameters
Name | Type |
---|---|
K | extends keyof MathMLElementTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
NodeListOf
<MathMLElementTagNameMap
[K
]>
Inherited from
HTMLAudioElement.querySelectorAll
▸ querySelectorAll<K
>(selectors
): NodeListOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Deprecated
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Name | Type |
---|---|
selectors | K |
Returns
NodeListOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Inherited from
HTMLAudioElement.querySelectorAll
▸ querySelectorAll<E
>(selectors
): NodeListOf
<E
>
Type parameters
Name | Type |
---|---|
E | extends Element <E > = Element |
Parameters
Name | Type |
---|---|
selectors | string |
Returns
NodeListOf
<E
>
Inherited from
HTMLAudioElement.querySelectorAll
releasePointerCapture
▸ releasePointerCapture(pointerId
): void
Parameters
Name | Type |
---|---|
pointerId | number |
Returns
void
Inherited from
HTMLAudioElement.releasePointerCapture
remove
▸ remove(): void
Removes node.
Returns
void
Inherited from
HTMLAudioElement.remove
removeAttribute
▸ removeAttribute(qualifiedName
): void
Removes element's first attribute whose qualified name is qualifiedName.
Parameters
Name | Type |
---|---|
qualifiedName | string |
Returns
void
Inherited from
HTMLAudioElement.removeAttribute
removeAttributeNS
▸ removeAttributeNS(namespace
, localName
): void
Removes element's attribute whose namespace is namespace and local name is localName.
Parameters
Name | Type |
---|---|
namespace | null | string |
localName | string |
Returns
void
Inherited from
HTMLAudioElement.removeAttributeNS
removeAttributeNode
▸ removeAttributeNode(attr
): Attr
Parameters
Name | Type |
---|---|
attr | Attr |
Returns
Attr
Inherited from
HTMLAudioElement.removeAttributeNode
removeChild
▸ removeChild<T
>(child
): T
Type parameters
Name | Type |
---|---|
T | extends Node <T > |
Parameters
Name | Type |
---|---|
child | T |
Returns
T
Inherited from
HTMLAudioElement.removeChild
removeEventListener
▸ removeEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof HTMLMediaElementEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (this : HTMLAudioElement , ev : HTMLMediaElementEventMap [K ]) => any |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLAudioElement.removeEventListener
▸ removeEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLAudioElement.removeEventListener
replaceChild
▸ replaceChild<T
>(node
, child
): T
Type parameters
Name | Type |
---|---|
T | extends Node <T > |
Parameters
Name | Type |
---|---|
node | Node |
child | T |
Returns
T
Inherited from
HTMLAudioElement.replaceChild
replaceChildren
▸ replaceChildren(...nodes
): void
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.replaceChildren
replaceWith
▸ replaceWith(...nodes
): void
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Name | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
HTMLAudioElement.replaceWith
requestFullscreen
▸ requestFullscreen(options?
): Promise
<void
>
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
Parameters
Name | Type |
---|---|
options? | FullscreenOptions |
Returns
Promise
<void
>
Inherited from
HTMLAudioElement.requestFullscreen
requestPointerLock
▸ requestPointerLock(): void
Returns
void
Inherited from
HTMLAudioElement.requestPointerLock
scroll
▸ scroll(options?
): void
Parameters
Name | Type |
---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLAudioElement.scroll
▸ scroll(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLAudioElement.scroll
scrollBy
▸ scrollBy(options?
): void
Parameters
Name | Type |
---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLAudioElement.scrollBy
▸ scrollBy(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLAudioElement.scrollBy
scrollIntoView
▸ scrollIntoView(arg?
): void
Parameters
Name | Type |
---|---|
arg? | boolean | ScrollIntoViewOptions |
Returns
void
Inherited from
HTMLAudioElement.scrollIntoView
scrollTo
▸ scrollTo(options?
): void
Parameters
Name | Type |
---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLAudioElement.scrollTo
▸ scrollTo(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLAudioElement.scrollTo
setAttribute
▸ setAttribute(qualifiedName
, value
): void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Parameters
Name | Type |
---|---|
qualifiedName | string |
value | string |
Returns
void
Inherited from
HTMLAudioElement.setAttribute
setAttributeNS
▸ setAttributeNS(namespace
, qualifiedName
, value
): void
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters
Name | Type |
---|---|
namespace | null | string |
qualifiedName | string |
value | string |
Returns
void
Inherited from
HTMLAudioElement.setAttributeNS
setAttributeNode
▸ setAttributeNode(attr
): null
| Attr
Parameters
Name | Type |
---|---|
attr | Attr |
Returns
null
| Attr
Inherited from
HTMLAudioElement.setAttributeNode
setAttributeNodeNS
▸ setAttributeNodeNS(attr
): null
| Attr
Parameters
Name | Type |
---|---|
attr | Attr |
Returns
null
| Attr
Inherited from
HTMLAudioElement.setAttributeNodeNS
setMediaKeys
▸ setMediaKeys(mediaKeys
): Promise
<void
>
Available only in secure contexts.
Parameters
Name | Type |
---|---|
mediaKeys | null | MediaKeys |
Returns
Promise
<void
>
Inherited from
HTMLAudioElement.setMediaKeys
setPointerCapture
▸ setPointerCapture(pointerId
): void
Parameters
Name | Type |
---|---|
pointerId | number |
Returns
void
Inherited from
HTMLAudioElement.setPointerCapture
toggleAttribute
▸ toggleAttribute(qualifiedName
, force?
): boolean
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
Parameters
Name | Type |
---|---|
qualifiedName | string |
force? | boolean |
Returns
boolean
Inherited from
HTMLAudioElement.toggleAttribute
webkitMatchesSelector
▸ webkitMatchesSelector(selectors
): boolean
Deprecated
This is a legacy alias of matches
.
Parameters
Name | Type |
---|---|
selectors | string |
Returns
boolean
Inherited from
HTMLAudioElement.webkitMatchesSelector